package ubiqweb.spring3.model;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "trainings")
public class Training implements Serializable{

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "training_id")
	private Integer trainingId;

	@Column(name = "topic")
	private String trainingTopic;
	
	@Column(name = "description")
	private String trainingDesc;

	@Column(name = "slots")
	private String trainingSlots;
	
	@Column(name = "training_fee")
	private String trainingFee;
	
	@Column(name = "location")
	private String location;
	
	@Column(name = "time_start")
	private String timeStart;
	
	@Column(name = "time_finish")
	private String timeFinish;
	
	@Column(name = "training_date")
	private Date trainingDate;
	
	public Date getTrainingDate() {
		return trainingDate;
	}

	public void setTrainingDate(Date trainingDate) {
		this.trainingDate = trainingDate;
	}

	@Column(name = "status")
	private String status;
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Training() {		
	}

	public Integer getTrainingId() {
		return trainingId;
	}

	public void setTrainingId(Integer trainingId) {
		this.trainingId = trainingId;
	}

	public String getTrainingTopic() {
		return trainingTopic;
	}

	public void setTrainingTopic(String trainingTopic) {
		this.trainingTopic = trainingTopic;
	}

	public String getTrainingDesc() {
		return trainingDesc;
	}

	public void setTrainingDesc(String trainingDesc) {
		this.trainingDesc = trainingDesc;
	}

	public String getTrainingSlots() {
		return trainingSlots;
	}

	public void setTrainingSlots(String trainingSlots) {
		this.trainingSlots = trainingSlots;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getTrainingFee() {
		return trainingFee;
	}

	public void setTrainingFee(String trainingFee) {
		this.trainingFee = trainingFee;
	}

	public String getTimeStart() {
		return timeStart;
	}

	public void setTimeStart(String timeStart) {
		this.timeStart = timeStart;
	}

	public String getTimeFinish() {
		return timeFinish;
	}

	public void setTimeFinish(String timeFinish) {
		this.timeFinish = timeFinish;
	}


}